import matplotlib.pyplot as plt
import numpy as np
import math

w = [0.1 * math.pi, 0.4 * math.pi, 0.8 * math.pi, math.pi, 2 * math.pi]
A = [6.1427, 0.60, 0.16, 0.1004, 0.04]
A = 20 * np.log10(A)
Phai = [-126, -161.50, -169.34, -171, -183.60]

plt.subplot(2, 1, 1)
plt.plot(w, A, "r-")

plt.subplot(2, 1, 2)
plt.plot(w, Phai, "b-")
plt.show()
